use crate::entity::article_summary::ArticleSummary;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug)]
//#[derive(Template)]
//#[template(path = "html/blog_list.html")]
#[derive(Serialize, Deserialize)]
pub struct ArticleSummaryVec {
    vec1: Vec<ArticleSummary>,
    vec2: Vec<ArticleSummary>,
    vec3: Vec<ArticleSummary>,
    total: i32,
    page_num: i32,
}

impl ArticleSummaryVec {
    pub fn new(
        vec1: Vec<ArticleSummary>,
        vec2: Vec<ArticleSummary>,
        vec3: Vec<ArticleSummary>,
        total: i32,
        page_num: i32,
    ) -> ArticleSummaryVec {
        ArticleSummaryVec {
            vec1,
            vec2,
            vec3,
            total,
            page_num,
        }
    }
}
